package com.right.health.app.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/*
 * Created by hopeliao on 2019-11-29
 *
 */
public class VisitCardResponse extends PageResponse {

    public List<VisitCardInfo> patientidcards;

     public static class VisitCardInfo implements Parcelable {

         public long createtime;
         public String syscommunitycode;
         public long updatetime;
         public String personid;
         public String patientidcardnum;
         public String syscommunityname;
         public String patientidcardid;
         public String hospitalpic;
         public String healthcardno;


         @Override
         public int describeContents() {
             return 0;
         }

         @Override
         public void writeToParcel(Parcel dest, int flags) {
             dest.writeLong(this.createtime);
             dest.writeString(this.syscommunitycode);
             dest.writeLong(this.updatetime);
             dest.writeString(this.personid);
             dest.writeString(this.patientidcardnum);
             dest.writeString(this.syscommunityname);
             dest.writeString(this.patientidcardid);
             dest.writeString(this.hospitalpic);
             dest.writeString(this.healthcardno);
         }

         public VisitCardInfo() {
         }

         protected VisitCardInfo(Parcel in) {
             this.createtime = in.readLong();
             this.syscommunitycode = in.readString();
             this.updatetime = in.readLong();
             this.personid = in.readString();
             this.patientidcardnum = in.readString();
             this.syscommunityname = in.readString();
             this.patientidcardid = in.readString();
             this.hospitalpic = in.readString();
             this.healthcardno = in.readString();
         }

         public static final Parcelable.Creator<VisitCardInfo> CREATOR = new Parcelable.Creator<VisitCardInfo>() {
             @Override
             public VisitCardInfo createFromParcel(Parcel source) {
                 return new VisitCardInfo(source);
             }

             @Override
             public VisitCardInfo[] newArray(int size) {
                 return new VisitCardInfo[size];
             }
         };
     }
}
